package cn.vcjf.weapp.api.setting.entity;

import cn.vcjf.weapp.common.web.PageModel;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
    * 
    * </p>
 *
 * @author zhengzihang
 * @since 2018-09-25
 */
@TableName("vc_pay_type")
public class PayType extends PageModel<PayType> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 支付方式名称
     */
    private String name;

    /**
     * 描述
     */
    private String desc;

    /**
     * 是否启用(0禁用,1启用)
     */
    private Integer enabled;

    /**
     * 排序
     */
    private Integer seq;

    /**
     * 微信公众号AppId
     */
    private String appId;

    /**
     * 微信公众号AppSecret
     */
    private String appSecret;

    /**
     * 商户支付密钥Key
     */
    private String key;

    /**
     * 受理商ID(即微信支付商户号)
     */
    private String merchId;

    /**
     * 支付手续费
     */
    private Double charge;

    /**
     * 货到付款(0否,1是)
     */
    private Integer payOnDelivery;

    /**
     * 在线支付(0否,1是)
     */
    private Integer payOnline;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
    public Integer getEnabled() {
        return enabled;
    }

    public void setEnabled(Integer enabled) {
        this.enabled = enabled;
    }
    public Integer getSeq() {
        return seq;
    }

    public void setSeq(Integer seq) {
        this.seq = seq;
    }
    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }
    public String getAppSecret() {
        return appSecret;
    }

    public void setAppSecret(String appSecret) {
        this.appSecret = appSecret;
    }
    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }
    public String getMerchId() {
        return merchId;
    }

    public void setMerchId(String merchId) {
        this.merchId = merchId;
    }
    public Double getCharge() {
        return charge;
    }

    public void setCharge(Double charge) {
        this.charge = charge;
    }
    public Integer getPayOnDelivery() {
        return payOnDelivery;
    }

    public void setPayOnDelivery(Integer payOnDelivery) {
        this.payOnDelivery = payOnDelivery;
    }
    public Integer getPayOnline() {
        return payOnline;
    }

    public void setPayOnline(Integer payOnline) {
        this.payOnline = payOnline;
    }

    @Override
    public void preInsert(){
        super.preInsert();
    }
    @Override
    public void preUpdate(){
        super.preInsert();
    }
    @Override
    public String toString() {
        return "PayType{" +
        "id=" + id +
        ", name=" + name +
        ", desc=" + desc +
        ", enabled=" + enabled +
        ", seq=" + seq +
        ", appId=" + appId +
        ", appSecret=" + appSecret +
        ", key=" + key +
        ", merchId=" + merchId +
        ", charge=" + charge +
        ", payOnDelivery=" + payOnDelivery +
        ", payOnline=" + payOnline +
        ", createUser=" + createUser +
        ", createTime=" + createTime +
        ", updateUser=" + updateUser +
        ", updateTime=" + updateTime +
        ", deleteFlag=" + deleteFlag +
        ", sysUserId=" + sysUserId +
        "}";
    }
}
